package com.chrissy.music.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chrissy.music.common.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author Johnson
 * @since 2024-01-27
 */
@Mapper
@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<String> selectMenuPermsByRoleId(@Param("roleId") Long roleId);

    List<String> selectMenuPermsByUserId(@Param("userId") Long userId);
}
